package com.ysg.widget.dialog;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;
import com.ysg.R;
import com.ysg.base.BaseDialog;
import com.ysg.utils.YBaseActivityUtil;

/**
 * 钻石充值
 */
public class DiamondRechargeDialog extends BaseDialog {

    public DiamondRechargeDialog(Context context) {
        super(context);
    }

    private ImageView ivClose;
    private TextView tvRecharge, tvTask;

    @Override
    public int getLayoutId() {
        return R.layout.dialog_diamond_recharge;
    }

    public void initView() {
        setCancelable(false);
        setCanceledOnTouchOutside(false);

        ivClose = findViewById(R.id.ivClose);
        tvRecharge = findViewById(R.id.tvRecharge);
        tvTask = findViewById(R.id.tvTask);
    }


    @Override
    public void initData() {
    }

    @Override
    public void initListener() {
        tvRecharge.setOnClickListener((v)->{
            dismiss();
            YBaseActivityUtil.getInstance().jumpMineRecharge(mContext);
        });
        tvTask.setOnClickListener((v)->{
            dismiss();
            YBaseActivityUtil.getInstance().jumpMineTask(mContext);
        });
        ivClose.setOnClickListener((v)->{
            dismiss();
        });
    }


}
